<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
    protected $table = 'tag'; 

    protected $fillable = ['name', 'type','is_category','status'];

    public $timestamps= false;

	public function getTypeAttribute($value){
		if($value=="article"){
			return "文章";
		}
	}

    public function getStatusAttribute($value){
        if($value){
            return "是";
        }else{
            return "否";
        }
    }
}
